package com.example.base.net

class Const {
    //伴生对象
    companion object{
        const val BASE_URL = "http://10.161.9.80:7456/"
        const val LOGIN_CODE_URL = "/api/front/login/mobile"//验证码登录
        const val SEND_CODE_URL = "/api/front/sendCode"//发送验证码
        const val GET_URSER_URL = "/api/front/user"//个人信息
        const val UPDATE_PWD_URL = "/api/front/register/reset"//修改密码
        const val LOGIN_URL = "/api/front/login"//密码登录

        const val INDEX_URL = "/api/front/index"//首页数据
        const val INDEX_GOODS_URL = "/api/front/index/product/{type}"//首页商品数据
        const val SEARCH_URL = "/api/front/products"//搜索数据/分类详情
        const val DETAIL_URL = "/api/front/product/detail/{id}"//详情

        const val ADD_URL = "/api/front/cart/save"//新增购物车
        const val GETCAR_URL = "/api/front/cart/list"//获取购物车列表
        const val UPDATE_URL = "/api/front/cart/num"//修改购物车数量
        const val DELETE_URL = "/api/front/cart/delete"//删除购物车

        const val CATEGORY_URL = "/api/front/category"//一二级分类数据
        const val REPLY_URL = "/api/front/reply/list/{id}"//获取评论列表

        const val comment_url = "http://10.161.9.80:7012/comment/getCommentByVideoId?videoId=107"//获取107视频的一级评论

        const val PREORDER_URL = "/api/front/order/pre/order"//预下单
        const val GETPREORDER_URL = "/api/front/order/load/pre/{preOrderNo}"//获取预下单

        const val CREATEORDER_URL = "/api/front/order/create"//创建订单

        const val IMAGE_URL = "/api/front/user/upload/image"//上传图片

        const val ORDER_URL= "/api/front/order/list"//订单列表


    }
}